<?php echo $this->tinyMce;?>
<h1><?php echo $title;?></h1>

<?php
echo form_open('cadminpage/edit');
echo "<div class='div-manipulate'>";
echo "<p><label for='pname'>Name</label><br/>";
$data = array('name'=>'name','id'=>'pname','size'=>25, 'value' => $page['name']);
echo form_input($data) ."</p>";

echo "<p><label for='short'>Keyword</label><br/>";
$data = array('name'=>'keyword','id'=>'short','size'=>40, 'value' => $page['keyword']);
echo form_input($data) ."</p>";

echo "<p><label for='desc'>Description</label><br/>";
$data = array('name'=>'description','id'=>'desc','size'=>40, 'value' => $page['description']);
echo form_input($data) ."</p>";

echo "<p><label for='fpath'>Path/FURL</label><br/>";
$data = array('name'=>'path','id'=>'fpath','size'=>50, 'value' => $page['path']);
echo form_input($data) ."</p>";

echo "<p><label for='parent_id'>Parent</label><br/>";
echo form_dropdown('parent_id',$listmenu, $page['parent_id']) ."</p>";

echo "<p><label for='activate'>External Contents</label><br/>";
$options = array('0' => 'Please select external resourses','lecturer'=>'Lecturers','news' => 'News and Events','course'=>'Resources','student_result'=>'Student Result','student_schedule'=>'Student Schedule', 'thesis'=>'Thesis');
echo form_dropdown('external_resource',$options, $page['external_content'], 'style="width:240px;"') ."</p>";

echo "<p><label for='long'>Content</label><br/>";
$data = array('name'=>'content','id'=>'long','rows'=>5, 'cols'=>'40', 'value' => $page['content']);
echo form_textarea($data) ."</p>";

echo "<p><label for='activate'>Activate</label><br/>";
$options = array('1' => 'active', '0' => 'inactive');
echo form_dropdown('activate',$options,$page['activate'], 'style="width:105px;height:25px; padding:2px;"') ."</p>";
echo "</div>";
echo form_hidden('page_id',$page['page_id']);
echo form_submit(array('class'=>'btn','name'=>'submit'),'Update Page');
echo form_close();


?>